import request from '@/utils/request'

// 查询分润信息列表
export function listshareInfo(query) {
  return request({
    url: '/business/shareInfo/list',
    method: 'get',
    params: query
  })
}

// 查询分润信息详细
export function getshareInfo(id) {
  return request({
    url: '/business/shareInfo/' + id,
    method: 'get'
  })
}

// 新增分润信息
export function addshareInfo(data) {
  return request({
    url: '/business/shareInfo',
    method: 'post',
    data: data
  })
}

// 修改分润信息
export function updateshareInfo(data) {
  return request({
    url: '/business/shareInfo',
    method: 'put',
    data: data
  })
}

// 删除分润信息
export function delshareInfo(id) {
  return request({
    url: '/business/shareInfo/' + id,
    method: 'delete'
  })
}

// 导出分润信息
export function exportshareInfo(query) {
  return request({
    url: '/business/shareInfo/export',
    method: 'get',
    params: query
  })
}